<div class="p10 w600">
<!--startprint-->
  <table class="table">
    <tr>
      <th class="w80">跟踪号:</th>
      <td class="w150">{$info['number']}</td>
      <td colspan="2" rowspan="5" class="fn-tac"><img alt="扫码验证" src="{ROOT_URL}uploads/qrcode/qrcode.png" /></td>
    </tr>
    <tr>
      <th>IMEI号:</th>
      <td>{$info['imei']}</td>
    </tr>
    <tr>
      <th>门店号:</th>
      <td>{$supplier_lists[$info['supplier_id']]}</td>
    </tr>
    <tr>
      <th>产品名称:</th>
      <td>{$producttype_lists[$info['producttype_id']]}</td>
    </tr>
    <tr>
      <th>运营商:</th>
      <td>{$unicom_lists[$info['unicom_id']]}</td>
    </tr>
    <tr>
      <th class="w80">购机时间:</th>
      <td>{if $info['shop_time']}{date('Y-m-d',$info['shop_time'])}{/if}</td>
      <th>收货时间:</th>
      <td>{if $info['ems_take_time']}{date('Y-m-d',$info['ems_take_time'])}{/if}</td>
    </tr>
    <tr>
      <th class="w80">入库时间:</th>
      <td>{if $info['add_time']}{date('Y-m-d',$info['add_time'])}{/if}</td>
      <th>DHL快递号:</th>
      <td>{$info['ems_sn']}</td>
    </tr>
    <tr>
      <th>是否过保:</th>
      <td>{if $info['overtime'] == '是'}<span class="badge">保内</span>{else}<span class="badge bg-red">过保</span>{/if}</td>
      <th>是否紧急:</th>
      <td>{if $info['is_urgent']}<span class="badge bg-red">加急</span>{else}<span class="badge">普通</span>{/if}</td>
    </tr>
    <tr>
      <th>厂商:</th>
      <td colspan="3">{$manufacturer_lists[$info['manufacturer_id']]}</td>
    </tr>
    <tr>
      <th>故障描述:</th>
      <td colspan="3">{$info['fault_why']}</td>
    </tr>
  </table>
 <!--endprint-->
<div class="btn fn-tac">
  <a href="javascript:;" onClick="doPrint()"  class="button">
      <i class="iconfont icon-dayinji"></i> 打印
  </a>
</div>
</div>
<script type="text/javascript">
function doPrint() { 
    bdhtml=window.document.body.innerHTML; 
    sprnstr="<!--startprint-->"; 
    eprnstr="<!--endprint-->"; 
    prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
    prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
    window.document.body.innerHTML=prnhtml; 
    window.print(); 
}
</script>
